/*
* 上传文件函数, 输入文件对象File, 产出的对象必须包含path
* */
import {requests} from "@/api"

export async function uploadFile(file) {
  let form = new FormData()
  form.append("username", "wangbin")
  form.append("password", "123456dyy")
  form.append("files", file)
  let ret = await requests.post("http://47.95.192.129:3305/upload/", form)
  return {
    url: ret.msg
  }
}
